{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Hds::Breadcrumb>
  <Hds::Breadcrumb::Item @text="Secrets" @route="secrets" @isRouteExternal={{true}} />
  {{#if this.shouldShowPath}}
    <Hds::Breadcrumb::Item @text={{this.secretMountPath.currentPath}} @route="scopes.index" />
  {{/if}}
  {{#if @scope}}
    <Hds::Breadcrumb::Item @text={{@scope}} @route="scope.roles" @model={{@scope}} />
  {{/if}}
  {{#if @role}}
    <Hds::Breadcrumb::Item @text={{@role}} @route="credentials.index" @models={{array @scope @role}} />
  {{/if}}
  {{#if @currentRoute}}
    <Hds::Breadcrumb::Item @text={{@currentRoute}} @current={{true}} />
  {{/if}}
</Hds::Breadcrumb>